package com.sgcc.ln.pmos.e_ln_order.adapter;

import android.content.Context;
import android.text.TextUtils;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sgcc.pmos.nativesdk.R;
import com.sgcc.ln.pmos.e_ln_order.bean.AddSupplementContractItemBean;

public class SupplementDifferenceAdapter extends BaseQuickAdapter<AddSupplementContractItemBean, BaseViewHolder> {


    public SupplementDifferenceAdapter() {
        super(R.layout.item_supplementdifference);
    }


    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, AddSupplementContractItemBean bean) {
        baseViewHolder.setText(R.id.tvDate, TextUtils.isEmpty(bean.getMonth()) ? " " : bean.getMonth() + ": ");
        baseViewHolder.setText(R.id.tvData, TextUtils.isEmpty(bean.getValue()) ? "0元/MWh" : bean.getValue() + "元/MWh");
    }
}
